package com.xh.petdogexpert.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xh.petdogexpert.user.dto.User;

public interface UserMapper {
    int deleteUser(User user);

    int addUser(User user);

    int insertSelective(User user);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User user);
    
    int updatePasswordByEmail(User user);
    
    int updateByPrimaryKey(User record);
    
    List<User> queryUsers(User user);

	User loginValudate(User user);
    
	int saveDogPic(@Param(value = "picName")String picName, @Param(value = "userId")Integer userId);

	List<String> getDogPic(@Param("userId") Integer userId);
}